function [K] = NormalizeK(K)
[m,n]=size(K);
for i=1:m
    K(i,:)=K(i,:)./max(1e-12,norm(K(i,:)));
end
end

 